package com.bean;

import org.springframework.stereotype.Component;

@Component
public class GoodsType {
    private int id;
    private String goodstype;
    private String goodssub;

    @Override
    public String toString() {
        return "GoodsType{" +
                "id=" + id +
                ", goodstype='" + goodstype + '\'' +
                ", goodssub='" + goodssub + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(String goodstype) {
        this.goodstype = goodstype;
    }

    public String getGoodssub() {
        return goodssub;
    }

    public void setGoodssub(String goodssub) {
        this.goodssub = goodssub;
    }

    public GoodsType(int id, String goodstype, String goodssub) {
        this.id = id;
        this.goodstype = goodstype;
        this.goodssub = goodssub;
    }

    public GoodsType() {
        super();
    }
}
